package com.example;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zihong on 2018/2/26.
 */
@RestController
public class HelloController {

    @RequestMapping(value = "/helloWorld",method = RequestMethod.GET)
    public String helloWorld(){
        String str = "hello world!";
        return  str;
    }
}
